
public class StringBufferApp {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		StringBuffer buf = new StringBuffer();
		buf.append("first,");
//		buf.append("second,");
//		buf.append("third,");
		
		System.out.println("buf.toString():" + buf.toString() + ":");
		System.out.println("buf length: " + buf.length());
		System.out.println("buf capacity: " + buf.capacity());
//		System.out.println("buf last char: " + buf.charAt(buf.length()-1));
//		System.out.println("buf last char removed: " + buf.substring(0, buf.length()-1));
	}

}
